import java.net.Socket; 
import java.io.*;
public class Test{
	public static void main(String[] args) throws Exception{
		String ip = "127.0.0.1";
		int port = 32227;
		Socket client = new Socket(ip,port);
        OutputStream os=client.getOutputStream();
        os.write(("1").getBytes("utf-8"));
        // os.flush();
        // client.shutdownOutput();
        os.close();
        client.close();
	} 
}